package com.sys.basics.service;

import com.sys.basics.entity.SysResource;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sys.basics.entity.SysResource;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * @author: ares
 * @date: 2021-10-08
 * @description: 系统资源表 服务类
 */
public interface SysResourceService extends IService<SysResource> {
    SysResource getTreeById(Long id);

    List<SysResource> getChildrenTreeByParentId(Long parentId);

    List<SysResource> getChildrenByParentId(Long parentId);

    SysResource getTreeByIdAsLeaf(Long id);

    boolean removeSelfAndChildrenById(Long id);

    List<SysResource> getParentTree();


    List<SysResource> getListByRoleId(Long roleId);

    List<SysResource> getTreeByOrgId(Long orgId);
}
